home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / CFMExamples / ModApp / ModuleSources / GWorldTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-03  |  1.0 KB  |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        GWorldTools.h
  3.  
  4.     Contains:    API for GworldTools library.
  5.     
  6.     Written by:    Richard Clark
  7.  
  8.     Copyright:    © 1993-1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.             8/15/94        BLS        added Lib_Export pragmas for 68K builds.
  13.             
  14.     To Do:
  15. */
  16.  
  17. #ifndef __QUICKDRAW__
  18.     #include <Quickdraw.h>
  19. #endif
  20.  
  21. #ifndef __WINDOWS__
  22.     #include <Windows.h>
  23. #endif
  24.  
  25. #ifndef __QDOFFSCREEN__
  26.     #include <QDOffscreen.h>
  27. #endif
  28.  
  29. enum {
  30.     // Custom result codes for CopyBufferToWindow
  31.     kPixelsPurged = 1
  32.     };
  33.  
  34. #ifdef __CFM68K__
  35. #pragma lib_export on
  36. #endif
  37.  
  38. Rect GetGlobalBounds (WindowPtr wp);
  39. OSErr AllocateBuffer (WindowPtr wp, Rect bounds, GWorldPtr *buffer, Boolean disposeOld);
  40. OSErr LockBuffer (GWorldPtr buffer, GWorldFlags *oldPixState);
  41. OSErr UnlockBuffer (GWorldPtr buffer, GWorldFlags oldPixState);
  42. OSErr UpdateBuffer (WindowPtr wp, GWorldPtr* buffer);
  43. OSErr DisposeBuffer (GWorldPtr* buffer);
  44. OSErr CopyBufferToWindow (WindowPtr wp, GWorldPtr buffer);
  45.  
  46. #ifdef __CFM68K__
  47. #pragma lib_export off
  48. #endif
  49.  
  50.